Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@rain-1
rain-1 / LLM.md
Last active May 11, 2024 17:17
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@davidpiesse
davidpiesse / tailwind_md_all_colours.js
Last active May 11, 2024 17:16
A colour set for Tailwind CSS that include all Material Design Colours, shades, accents and contrast colours
// https://davidpiesse.github.io/tailwind-md-colours/
//
//Notes
//
//All colours are generated from Material Design Docs
//Colours have a base, a set of shades (50-900) accent colours
//In addition a companion set of contrast colours are included for colouring text / icons
// Example usage
// class="w-full bg-red-600 text-red-600-constrast"
@yuntaek
yuntaek / cmake-tutorial.md
Created July 7, 2019 20:22 — forked from luncliff/cmake-tutorial.md
CMake 할때 쪼오오금 도움이 되는 문서

주의

  • 이 문서는 CMake를 주관적으로 서술합니다
  • 이 문서를 통해 CMake를 시작하기엔 적합하지 않습니다
    https://cgold.readthedocs.io/en/latest/ 3.1 챕터까지 따라해본 이후 기본사항들을 속성으로 익히는 것을 돕기위한 보조자료로써 작성되었습니다

참고자료

@ECHO OFF
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDPrivate
:CONFIRM
echo Are you sure to lock this folder? (Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
@srmsoumya
srmsoumya / 2022-02-07_cmr-stac-api.ipynb
Last active May 11, 2024 17:13
# Create Monthly NDVI composites using Harmonized Landsat Sentinel (HLS) data from NASA CMR STAC api using `pystac_client` & `stackstac`
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sotatek-NuiTran
Sotatek-NuiTran / multi_ssh_git.md
Last active May 11, 2024 17:12
Setup SSH keys for multiple github and gitlab account

Setup SSH keys for multiple github and gitlab account

Prepare SSH keys:

Add a new key

$ ssh-keygen -t rsa_new -C "your_email@youremail.com"

Start ssh-agent

$ eval `ssh-agent -s`
@psu
psu / logseq-config-default-queries.edn
Last active May 11, 2024 17:11
logseq-config-default-queries.edn
;; Logseq Default Query 6-pack
;; ---------------------------
;;
;; Pontus Sundén (@psu)
;; October 28, 2022
;;
;; Attribution
;; - https://gist.github.com/sawhney17/3a1b04936f35df80253431a61cb74737
;;
;; ---------------------------
@RaduTek
RaduTek / Windows Embedded POSready 2009.txt
Last active May 11, 2024 17:09
Windows Embedded Standard Product Keys
WEPOS2009 Full keys:
KGRMV-TWG8H-43Y2K-7PJBC-PM4CB (Unknown, OEM)
XM633-9YG7Y-47JM6-4QMF8-XPKYG (Unknown, OEM)
XPT4M-RKVC9-4YQWT-JJP76-RBXD3 (Full)
WEPOS2009 Other keys (might be Evaluation, don't use):
KFF8R-TMHF4-GKT2P-KGDHH-FXPMB
D4GQ7-HG48K-7YP6R-6JM4C-33FMQ
@alexweberk
alexweberk / mlx_finetuning_gemma.ipynb
Last active May 11, 2024 17:09
MLX Fine-tuning Google Gemma
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.